{*head 部分*}
{include file='public/head.html'}
<div class="wrapper">

    <!-- START HEADER -->
    {*ghead 部分*}
    {include file='public/ghead.html'}
    <!-- END HEADER -->

    <!-- START MAIN -->
    <div id="main">
        <!-- START SIDEBAR -->
        {*导航 部分*}
        {include file='public/nav.html'}
        <!-- END SIDEBAR -->

        <!-- START PAGE -->
        <div id="page">
            <!-- start page title -->
            <div class="page-title">
                <div class="in">
                    <div class="titlebar">	<h2>分类管理</h2>	<p>编辑分类</p></div>

                    <div class="clear"></div>
                </div>
            </div>
            <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <div class="simplebox grid740" style="z-index: 720;">
                    <div class="titleh" style="z-index: 710;">
                        <h3>编辑分类</h3>
                    </div>
                    <div class="body" style="z-index: 690;">

                        <form id="form2" name="form2" method="post" action="{$url}?p=admin&m=Cat&a=upd&id={$row['id']}">
						<!-- <input type="hidden" name="p" value="back"/> -->
						<!-- <input type="hidden" name="m" value="category"/> -->
						<!-- <input type="hidden" name="a" value="update"/> -->
						<!-- <input type="hidden" name="id" value="12"/> -->
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">分类名字</span>
                                <input name="name" type="text" class="st-forminput" style="width:510px" value="{$row['name']}">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 640;">
                                <span class="st-labeltext">父分类</span>
                                <select name="parent_id" class="uniform">
                                    <option  value="0" {if $row['parent_id']==0}selected="selected" {/if}>无</option>

                                    {foreach from=$tree item='category' key='k'}
            <option value="{$category['id']}" {if $row['parent_id']==$category['id']} selected="selected" {/if}>{'--'|str_repeat:$category['level']} {$category['name']}</option>
                                    {/foreach}

                                    <!--<option  value="1" >科技</option>-->
									<!--<option  value="2" >&#45;&#45;计算机</option>-->
									<!--<option  value="17" >&#45;&#45;&#45;&#45;笔记本</option>-->
									<!--<option  value="3"  selected="selected" >&#45;&#45;航空航天</option>-->
									<!--<option  value="5" >&#45;&#45;&#45;&#45;火星计划</option>-->
									<!--<option  value="6" >美食</option>-->
									<!--<option  value="7" >&#45;&#45;湘菜</option>-->
									<!--<option  value="12" >&#45;&#45;&#45;&#45;口味虾</option>-->
									<!--<option  value="13" >&#45;&#45;&#45;&#45;口味蛇</option>-->
									<!--<option  value="14" >&#45;&#45;&#45;&#45;口味蛙</option>-->
									<!--<option  value="15" >&#45;&#45;&#45;&#45;宫保鸡丁</option>-->
									<!--<option  value="16" >&#45;&#45;&#45;&#45;黄鸭叫</option>-->
									<!--<option  value="8" >&#45;&#45;川菜</option>-->
									<!--<option  value="9" >&#45;&#45;粤菜</option>-->
									<!--<option  value="11" >&#45;&#45;徽菜</option>-->

                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">排序</span>
                                <input name="sort" type="text" class="st-forminput" style="width:510px" value="100">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="button-box" style="z-index: 460;">
                                <input type="submit" name="button" id="button" value="提交" class="st-button">
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
        <div class="clear"></div>
    </div>
    <!-- END MAIN -->

    <!-- START FOOTER -->
    {*页脚部分*}
    {include file='public/footer.html'}